package cn.auth.config.web;

import java.util.ArrayList;
import java.util.List;

public class DataGridResultInfo<T> {



    //总条数
    private long total;
    //结果集
    private List<T> rows = new ArrayList<T>();
    //当前页
    private long pageNum;
    //总页数
    private long pages;
    //起始页
    private long startRow;
    //结束页
    private long endRow;
    //每页大小
    private long pageSize;







    /**************************************************/
    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }

    public long getPageNum() {
        return pageNum;
    }

    public void setPageNum(long pageNum) {
        this.pageNum = pageNum;
    }

    public long getPages() {
        return pages;
    }

    public void setPages(long pages) {
        this.pages = pages;
    }

    public long getStartRow() {
        return startRow;
    }

    public void setStartRow(long startRow) {
        this.startRow = startRow;
    }

    public long getEndRow() {
        return endRow;
    }

    public void setEndRow(long endRow) {
        this.endRow = endRow;
    }

    public long getPageSize() {
        return pageSize;
    }

    public void setPageSize(long pageSize) {
        this.pageSize = pageSize;
    }

    @Override
    public String toString() {
        return "DataGridResultInfo{" +
                "total=" + total +
                ", rows=" + rows +
                ", pageNum=" + pageNum +
                ", pages=" + pages +
                ", startRow=" + startRow +
                ", endRow=" + endRow +
                ", pageSize=" + pageSize +
                '}';
    }
}